// @ts-nocheck
import * as http from '@/tools/http'


/*获取单一用户*/
export async function getUser(params: object) {
  return http.get('/api/system/oneUser', params)
}

/*获取单一用户*/
export async function queryUser(params: object) {
  return http.get('/api/system/user', params)
}

/*新建用户*/
export async function createUser(params: object) {
  return http.post('/api/system/user', params)
}

/*修改角色*/
export async function modifyUser(params: object) {
  return http.put('/api/system/user', params)
}

/*删除用户*/
export async function delUser(params: object) {
  return http.del('/api/system/user', params)
}
